<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body,html{
            height: 100%;
            /* overflow: auto; */
        }
        .wrapper{
            display: flex;
            height: 100%;
            flex-direction: column;
        }
        .contenter,footer{
            font-size: 50px;
            text-align: center;
            flex-shrink: 0;
        }
        .contenter{
            /* height: 500px; */
            line-height: 500px;
            background-color: #ccc;
        }
        footer{
            /* height: 120px; */
            line-height: 120px;
            background-color: thistle;
            margin-top: auto;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="contenter">content</div>
        <footer>footer</footer>
    </div>
</body>
</html>